package com.design_patterns.iterator.v2;

/**
 * @author: 李德才
 * @description:
 * @create: 2020-09-01 20:26
 **/
public class Main {


    public static void main(String[] args) {

        Collection_ arrayList_ = new ArrayList_();
        for (int i = 0; i < 10; i++) {
            arrayList_.add(i);
        }
        System.err.println(arrayList_.size());
        System.err.println(arrayList_.toString());

        Collection_ linkedList_ = new LinkedList_();
        for (int i = 0; i < 10; i++) {
            linkedList_.add(i);
        }
        System.err.println(linkedList_.size());

    }
}
